import allRoutes from "./generateRoute";
let target = allRoutes.find((item) => item.name === "home");
console.log(target);
//动态路由
let dynamicRoutes = {
  path: "/",
  children: [...target.children],
  //希望不需要/home直接/就能开始访问子组件（比如users、mine、payment）
  component: () => import("@/layout/container.vue")
};

//[]要和另外一个文件的...一起用才不会报错
export default dynamicRoutes;
